package com.atguigu.gmall.feign.cart;

import com.atguigu.gmall.model.product.SkuInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author 钟涛
 * @version 1.0
 * @description: TODO
 * @date 2021/12/22 11:29
 */
@FeignClient("service-cart")
@RequestMapping("/api/inner/cart")
public interface CartFeignClient {
    @GetMapping("/add/{skuId}")
    public SkuInfo addSkuToCart(@PathVariable("skuId")Long skuId,
                                @RequestParam("skuNum")Integer skuNum);
}
